package com.nbsaas.boot.customer.rest.convert;

import com.nbsaas.boot.customer.data.entity.CustomerLabel;
import com.nbsaas.boot.customer.api.domain.request.CustomerLabelRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 客户标签请求对象转换成实体对象
*/

public class CustomerLabelEntityConvert  implements Converter<CustomerLabel, CustomerLabelRequest> {

    @Override
    public CustomerLabel convert(CustomerLabelRequest source) {
        CustomerLabel result = new CustomerLabel();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

